import React from 'react'
import { Routes, Route } from 'react-router-dom'
import Navbar from './components/Navbar'
import Home from './pages/Home'
import DefectDetect from './pages/DefectDetect'
import DataManagement from './pages/DataManagement'
import Chat from './pages/Chat'

export default function App(){
  return (
    <div className="app">
      <Navbar />
      <main className="container">
        <Routes>
          <Route path="/" element={<Home />} />
          <Route path="/detect" element={<DefectDetect />} />
          <Route path="/data" element={<DataManagement />} />
          <Route path="/chat" element={<Chat />} />
        </Routes>
      </main>
    </div>
  )
}
